page {
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  font-size: 28rpx;
  color: #333;
}

.img-placeholder {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-container {
  width: 100%;
  height: 500rpx;
  overflow: hidden;
  box-sizing: border-box;
}

.main-swiper {
  width: 100%;
  height: 100%;
}

.swiper-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30rpx;
  box-sizing: border-box;
}

.module-card {
  width: 48%;
  height: 213rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rpx;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.town-card {
  background-color: #FFF8EB;
}

.rural-card {
  background-color: #FFF2F0;
}

.tag {
  padding: 10rpx 20rpx;
  border-radius: 8rpx;
  color: #fff;
  font-size: 24rpx;
  white-space: nowrap;
}

/* ✅ 新增：tag 定位和颜色样式 */
.tag-offset {
  width: 147rpx;
  height: 51rpx;
  position: absolute;
  top: 10rpx;
  left: 0;
  display: block;
  box-sizing: border-box;
}

.tag-yellow {
  background-color: #F7B557;
}

.tag-red {
  background-color: #E63E30;
}

/* ✅ 新增：卡片样式 */
.custom-card {
  width: 334rpx;
  height: 213rpx;
  display: flex;
  box-sizing: border-box;
  position: relative;
}

/* ✅ 新增：文字偏移样式 */
.text-offset {
  position: relative;
  left: -128rpx;
}

.title-offset {
  position: relative;
  top: -10rpx;
  left: -20rpx;
}

.desc-offset {
  position: relative;
  top: 33rpx;
  left: -170rpx;
}

.content {
  flex-grow: 1;
  margin-left: 20rpx;
}

.title {
  font-size: 26rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.5;
}

.icon {
    width: 90rpx;
    height: 100rpx;
    margin-left: -100rpx;
    margin-top: 50rpx;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .icon image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8rpx;
    display: block;
  }

.xum image {
  width: 100%;
  height: 300rpx;
  object-fit: cover;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20rpx 0;
  padding: 0 20rpx;
}

.more {
  font-size: 26rpx;
  color: #999;
}

.recommend-scroll {
  width: 100%;
  padding: 0 20rpx;
  box-sizing: border-box;
}

.scroll-content {
  display: flex;
  gap: 20rpx;
  padding: 0 10rpx 20rpx;
}

.recommend-img {
  width: 350rpx;
  height: 450rpx;
  border-radius: 12rpx;
  flex-shrink: 0;
  object-fit: cover;
}

.recommend-imgs {
  width: 500rpx;
  height: 270rpx;
  border-radius: 12rpx;
  flex-shrink: 0;
  object-fit: cover;
}

.adver {
  display: flex;
  width: 100%;
  padding: 10rpx 8rpx;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 18rpx;
  margin: 20rpx 0;
}

.adver-left {
  width: 40%;
  padding: 8rpx;
}

.adver-right {
  width: 33%;
  display: flex;
  flex-direction: column;
  padding: 8rpx;
}

.adver-right view:last-child {
  padding-top: 8rpx;
}

.adver image {
  width: 100%;
  border-radius: 8rpx;
  object-fit: cover;
}
